package Lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo {
    public static void main(String[] args) {
        FileFilter file = new FileFilter() {
            public boolean accept(File f) {return f.getName().startsWith(".");}
        };

        FileFilter filter = (File f)->{
            return f.getName().startsWith(".")  ;
        };

        FileFilter filter1 = f->{
            return f.getName().startsWith(".");
        };

        FileFilter filter2 = f->f.getName().startsWith(".");

        File dir = new File(".");
        File[] subs = dir.listFiles(f->f.getName().startsWith("."));
    }
}
